package com.wtwd.campus.h5_manager.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wtwd.campus.h5_manager.entity.H5ManageUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wtwd.campus.h5_manager.entity.vo.H5ManageUserVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author mjy
 * @since 2022-03-04
 */
@Mapper
public interface H5ManageUserMapper extends BaseMapper<H5ManageUser> {

    Integer deleteByCustomerId(@Param("customerId") Integer customerId);

    Integer deleteByRoleId(@Param("roleId") Integer roleId);

    IPage<H5ManageUser> getUserPageByCustomerId(@Param("customerId") Integer customerId,@Param("page") Page<H5ManageUser> page);

    IPage<H5ManageUserVo> getUserPageByConditions(@Param("data") H5ManageUser userSearch, @Param("page") Page<H5ManageUser> page);
}
